package com.le.tester.javaThink.fifth.chapter14_StreamingProgramming;

import com.le.tester.javaThink.common.Repeat;

/**
 * 描述：产生循环
 */
public class Looping {
    static void hi() {
        System.out.println("Hi!");
    }

    public static void main(String[] args) {
        Repeat.repeat(3, () -> System.out.println("looping!"));
        Repeat.repeat(2, Looping::hi);
    }
}
